import AiCore from "./AiCore";

// 单例实例
let aiCoreInstance: AiCore | null = null;

/**
 * 获取AiCore单例实例
 * 按需创建和返回唯一实例
 */
export function useAiCore() {
	if (!aiCoreInstance) {
		aiCoreInstance = new AiCore();
	}
	return aiCoreInstance;
}
